package com.hopes.bizz.hazard.setting.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hopes.bizz.common.core.annotation.ExcelDictImportValidate;
import com.hopes.boss.common.entity.ExcelDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 数采仪管理
 * @time 2024/1/16 16:29
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class HazBasicRtuConfigExcelDTO extends ExcelDTO {

    private static final long serialVersionUID = -198323222297100480L;

    /**
     * ID
     */
    @ExcelIgnore
    @ExcelProperty("ID")
    private Long id;

    /**
     * 所属企业
     */
    @ExcelProperty("所属企业")
    @ExcelDictImportValidate(enumResolver = "sys_company", message = "所属企业解析异常")
    private String orgIdStr;

    @ExcelProperty("设备名称")
    private String deviceName;

    @ExcelProperty("设备编码")
    private String deviceCode;

    @ExcelProperty("传输协议")
    @ExcelDictImportValidate(enumResolver = "park_protocol_type", message = "传输协议解析异常")
    private String protocolTypeStr;

    @ExcelProperty("是否使用")
    @ExcelDictImportValidate(enumResolver = "yes_no_type", message = "是否使用解析异常")
    private String useFlagStr;

    @ExcelProperty("设备厂商")
    private String supplier;

    @ExcelProperty("规格型号")
    private String specification;

    @ExcelProperty("备注说明")
    private String remarks;

}
